//
// Created by LONG on 2020/10/31.
//

#include "asn1Utils.h"

void ASN1_SetMibSfnMsb6Bit(uint8_t *mibBuffer, uint16_t sfn)
{
    uint16_t sfnMsb;

    sfnMsb = (sfn >> 4) & 0x3f;
    mibBuffer[0] = (mibBuffer[0] & 0x81) | (sfnMsb << 1);
}

void ASN1_GetMibSfnMsb6Bit(uint8_t *mibBuffer, uint16_t *sfn)
{
    *sfn = (mibBuffer[0] & 0x7E) > 1;
}
